<?php

class About extends CI_Controller {

    var $_public_view;

    function __construct() {
        parent::__construct();
        $this->load->model('model_perjalanan', 'mtrip');
        $this->load->helper('url');
        $this->load->library('session');
        $this->config->load('ojexcom');
        $this->_public_view = $this->config->item('public_view');
    }

    function index() {

        $isLogin = $this->session->userdata('isLogin');
        $user = ''; $id='';
        if ($isLogin) {
            $user = $this->session->userdata('username');
            $id = $this->session->userdata('user_id');
        }

        $data = array(
            'user'=> $user, 'id' => $id,
            'isLogin' => $isLogin,
            'page_title' => 'About Us',
            'page_content' => 'about');
       $this->load->view($this->_public_view, $data);
       //$this->load->view('cari');
     }

}

?>
